package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存报损单(es_stock_damage_report)对象 es_stock_damage_report
 *
 * @author ruoyi
 * @date 2025-03-14
 */
public class EsStockDamageReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String sn;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 制单人ID */
    @Excel(name = "制单人ID")
    private Long creatorId;

    /** 制单人 */
    @Excel(name = "制单人")
    private String creator;

    /** 报损时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报损时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;

    /** 报损类型(键) */
    @Excel(name = "报损类型(键)")
    private String damageTypeKey;

    /** 报损类型(值) */
    @Excel(name = "报损类型(值)")
    private String damageTypeValue;

    /** 调整说明 */
    @Excel(name = "调整说明")
    private String reportDesc;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 审核驳回原因 */
    @Excel(name = "审核驳回原因")
    private String rejectReason;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setReportTime(Date reportTime)
    {
        this.reportTime = reportTime;
    }

    public Date getReportTime()
    {
        return reportTime;
    }
    public void setDamageTypeKey(String damageTypeKey)
    {
        this.damageTypeKey = damageTypeKey;
    }

    public String getDamageTypeKey()
    {
        return damageTypeKey;
    }
    public void setDamageTypeValue(String damageTypeValue)
    {
        this.damageTypeValue = damageTypeValue;
    }

    public String getDamageTypeValue()
    {
        return damageTypeValue;
    }
    public void setReportDesc(String reportDesc)
    {
        this.reportDesc = reportDesc;
    }

    public String getReportDesc()
    {
        return reportDesc;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRejectReason(String rejectReason)
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason()
    {
        return rejectReason;
    }
    public void setAuditTime(Date auditTime)
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime()
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("warehouseId", getWarehouseId())
            .append("warehouseName", getWarehouseName())
            .append("creatorId", getCreatorId())
            .append("creator", getCreator())
            .append("reportTime", getReportTime())
            .append("damageTypeKey", getDamageTypeKey())
            .append("damageTypeValue", getDamageTypeValue())
            .append("reportDesc", getReportDesc())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("rejectReason", getRejectReason())
            .append("auditTime", getAuditTime())
            .toString();
    }

    private List<EsStockDamageReportProduct> products;

    public List<EsStockDamageReportProduct> getProducts() {
        return products;
    }

    public void setProducts(List<EsStockDamageReportProduct> products) {
        this.products = products;
    }
}
